package com.simplefun;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.IdentityType;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Contact {

	@Persistent
	private String name;
	
	@Persistent
	private int closeness;

	@Persistent
	private boolean waitingForResponse;
	
	@PrimaryKey
	@Persistent(valueStrategy= IdGeneratorStrategy.IDENTITY)
	private Long id;

	public Contact(String name, int closeness,
			boolean waitingForResponse) {
		super();
		this.name = name;
		this.closeness = closeness;
		this.waitingForResponse = waitingForResponse;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCloseness() {
		return closeness;
	}

	public void setCloseness(int closeness) {
		this.closeness = closeness;
	}

	public boolean isWaitingForResponse() {
		return waitingForResponse;
	}

	public void setWaitingForResponse(boolean waitingForResponse) {
		this.waitingForResponse = waitingForResponse;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
